﻿<%@ Page Language="C#" MasterPageFile="~/Global/Other.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="TVC_WEB.Global.Register" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">

function checkpass()
{
    var pass1= document.getElementById("ctl00_ContentPlaceHolder1_txtPass").value;
    var pass2 =  document.getElementById("ctl00_ContentPlaceHolder1_txtCormPass").value;
    
    if (pass1!=pass2)
    {
        document.getElementById("ctl00_ContentPlaceHolder1_lbErrPass").innerHTML = "M&#7853;t kh&#7849;u không h&#7907;p l&#7879;";
        document.getElementById("jerror").style.display = "inline-block";
    }
    else
    {
        document.getElementById("ctl00_ContentPlaceHolder1_lbErrPass").innerHTML ="";
        document.getElementById("jerror").style.display = "none";
        }
}
function CheckMail() {
    var rs = new RegExp("([A-Za-z0-9_.-]){2,}@([A-Za-z0-9_.-]){2,}.([A-Za-z0-9_.-]){2,}");
    var email = document.getElementById("ctl00_ContentPlaceHolder1_txtEmail").value;
    if(email.match(rs) == null)
    { 
       document.getElementById("ctl00_ContentPlaceHolder1_lbvademail").innerHTML ="Email không h&#7907;p l&#7879;";
       
       document.getElementById("jerror").style.display = "inline-block";
    }
    else
    {
       document.getElementById("ctl00_ContentPlaceHolder1_lbvademail").innerHTML ="";
       document.getElementById("jerror").style.display = "none";
       }
}

    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        New Account</h1>
    <h2>
        Please create an account by submitting the following information</h2>
    <div class="p2">
        Your password must contain between 6 and 12 alphanumeric characters and is case-sensitive.</div>
    </br>
    <div>
        <font id="jerror" class="error" style="display: none">
            <asp:Label ID="lbErrPass" runat="server" Text=""></asp:Label></br>
            <asp:Label ID="lbvademail" runat="server" Text=""></asp:Label>
        </font>
    </div>
    <div>
        <div style="padding-bottom: 5px">
            <b style="margin-left: 100px">
                <asp:Label ID="Label1" runat="server" Text="Email Address :"></asp:Label></b>
            <span style="margin-left: 35px">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></span>
        </div>
        <div style="padding-bottom: 5px">
            <b style="margin-left: 100px">
                <asp:Label ID="Label2" runat="server" Text="Password :"></asp:Label></b> <span style="margin-left: 65px">
                    <asp:TextBox TextMode="Password" ID="txtPass" runat="server"></asp:TextBox></span>
        </div>
        <div style="padding-bottom: 5px">
            <b style="margin-left: 100px">
                <asp:Label ID="Label3" runat="server" Text="Confirm password :"></asp:Label></b>
            <span style="margin-left: 10px">
                <asp:TextBox ID="txtCormPass" TextMode="Password" runat="server"></asp:TextBox></span>
        </div>
    </div>
    <div style="padding-left: 200px">
        <asp:Button ID="txtContinue" runat="server" Text="Continue" OnClick="txtContinue_Click" />
    </div>
</asp:Content>
